import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// 引入axios
import axios from "axios";
import Scroller from "@/components/Scroller";
import Loading from "../src/components/Loading";

axios.defaults.baseURL = "http://192.168.3.14:8081/";
// 挂载到vue原型链上
Vue.prototype.axios = axios;

Vue.component("Scroller", Scroller);
Vue.component("Loading", Loading);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
